import React from "react";
import { Consumer } from "./context";

// const { Consumer } = createContext();

const Child3 = () => {
  return (
    <div>
      child3组件 - <Consumer>{(value) => <span>{value.num}</span>}</Consumer>
    </div>
  );
};

export default Child3;
